<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="sge.beans.*,java.util.List"%>

<h2>IFRN</h2>
	<div style="width: 550px; height: 25px; background-image: url(<%=application.getContextPath()%>/css/imagens/centro1.jpg); float: left; margin-top: 0px;"></div>
		<div class="conteudo">
			<form method="post" action="<%=application.getContextPath()%>/cadastrar_disciplina">
				<fieldset>
					<legend>Cadastrar nova Disciplina</legend>
						<p class="formulario">areaProfissional: 
						<select name="areaProfissional">
							<%
								Fachada fachada = Fachada.obterInstancia();
								List<AreaProfissional> listaArea = fachada.listarAreaProfissional();
								for (int i = 0; i < listaArea.size(); i++) {
							%>
							<option><%=listaArea.get(i).getNome()%></option>
							<%
								}
							%>
						</select></p>
						<p class="formulario">Curso: 
						<select name="curso">
						<%
							fachada = Fachada.obterInstancia();
							List<Curso> listaCurso = fachada.todosCurso();
							for (int i = 0; i < listaCurso.size(); i++) {
						%>
							<option><%=listaCurso.get(i).getNome()%></option>
						<%
							}
						%>
						</select></p>
						<p class="formulario">Disciplina: <input class="textmedium"
							type="text" name="disciplina" /></p>
						<p style="text-align: right; margin: 10px;"><input type="submit"
							value="Ok" /></p>
				</fieldset>

			</form>
			</div>
	<div style="width: 550px; height: 25px; background-image: url(<%=application.getContextPath()%>/css/imagens/centro3.jpg); float: left; margin-bottom: 0px;"></div>